<?php


$con = mysqli_connect('localhost','root','','db4208');
if (!$con) {
  die('Could not connect: ' . mysqli_error($con));
}

mysqli_select_db($con,"sem_data");
$sql="SELECT * FROM sem_data";
$result = mysqli_query($con,$sql);

while ($row = mysqli_fetch_array($result)) {

   echo $row['course_number'] . ',';
   
   
}

mysqli_close($con);
?>

